package com.deodar.system.service.impl;

import com.deodar.common.annotation.DataSource;
import com.deodar.common.enums.DataSourceType;
import com.deodar.system.domain.AnnualReportInfo;
import com.deodar.system.mapper.AnnualReportInfoMapper;
import com.deodar.system.service.IAnnualReportInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@DataSource(value = DataSourceType.SLAVE)
@Service("annualReportInfoService")
public class AnnualReportInfoServiceImpl implements IAnnualReportInfoService {

    @Resource
    private AnnualReportInfoMapper annualReportInfoMapper;

    @Override
    public List<AnnualReportInfo> findList(int startNd, int endNd) {
        return annualReportInfoMapper.selectList(startNd, endNd);
    }

    @Override
    public int getCount(int startNd, int endNd) {
        return annualReportInfoMapper.getCount(startNd, endNd);
    }
}
